package com.zjweu.hkg.Servies.impl;

import com.zjweu.hkg.DAO.ChatHistoryDAO;
import com.zjweu.hkg.POJO.ChatHistory;
import com.zjweu.hkg.Servies.ChatHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChatHistoryImpl implements ChatHistoryService {
    @Autowired
    ChatHistoryDAO chatHistoryDAO;
    @Override
    public int setChatHis(ChatHistory chatHistory) {
        return chatHistoryDAO.setChatHis(chatHistory);
    }

    @Override
    public List<ChatHistory> getChatHisByUID(int uid) {
        return chatHistoryDAO.getChatHisByUID(uid);
    }
}
